package com.ke.forum.socket.service.impl;

import com.ke.forum.mbg.entity.ChatSession;
import com.ke.forum.mbg.dao.ChatSessionMapper;
import com.ke.forum.mbg.entity.dto.ChatSessionDto;
import com.ke.forum.socket.service.ChatSessionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 珂
 * @since 2021-07-02
 */
@Service
public class ChatSessionServiceImpl extends ServiceImpl<ChatSessionMapper, ChatSession> implements ChatSessionService {

    @Autowired
    ChatSessionMapper chatSessionMapper;

    @Override
    public List<ChatSessionDto> listChatSessionByUserUuid(String uuid) {
        return chatSessionMapper.listChatSessionByUserUuid(uuid);
    }
}
